package service

import "vtrip/internal/model"

type AddTourismTypeRequest struct {
	Name string `form:"name" binding:"required"`
}

func (svc Service) GetAllTourismType() ([]*model.TourismTypePart, error) {
	return svc.dao.FindAllTourismType()
}

func (svc Service) AddTourismType(param *AddTourismTypeRequest) error {
	return svc.dao.AddTourismType(param.Name)
}
